﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Global.Class.Library;
using BrightIdeasSoftware;
using Equin.ApplicationFramework;

namespace PresentationLayer
{
    public partial class test : Form, ICallToolStrip
    {

        #region <Implement Interface>

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

    
        public GlobalEnum.TaskID TaskID
        {
            get { return GlobalEnum.TaskID.EmployeeCategory; }
        }

        #region ICallToolStrip

        public void Escape()
        {

        }

        public void Loading()
        {

        }

        public void New()
        {
            
        }

        public void Edit()
        {
            MessageBox.Show("Edit");
        }

        public void Save()
        {
            
        }

        public void Delete()
        {
            
        }

        public void Import()
        {
            MessageBox.Show("Import");
        }

        public void Export()
        {
            MessageBox.Show("Export");
        }

        public void Verify()
        {
            MessageBox.Show("Verify");
        }

        public void Print(PrintDestination printDestination)
        {
            MessageBox.Show("Print");
        }

        public void SearchText(string searchText)
        {
        }

        #endregion







        #region Context toolbar


        public bool IsDirty
        {
            get { return false; }
        }

        public bool IsValid
        {
            get { return false; }
        }

        public bool Closable
        {
            get { return true; }
        }

        public bool Loadable
        {
            get { return true; }
        }

        public bool Newable
        {
            get { return true; }
        }

        public bool Editable
        {
            get { return false; }
        }

        public bool Deletable
        {
            get { return false; }
        }

        public bool Importable
        {
            get { return true; }
        }

        public bool Exportable
        {
            get { return true; }
        }

        public bool Verifiable
        {
            get { return true; }
        }

        public bool Unverifiable
        {
            get { return false; }
        }

        public bool Printable
        {
            get { return false; }
        }

        public bool Searchable
        {
            get { return true; }
        }


        /// <summary>
        /// Edit Mode: True, Read Mode: False
        /// </summary>
        private bool editableMode;
        public bool EditableMode { get { return this.editableMode; } }
        /// <summary>
        /// This reverse of the EditableMode
        /// </summary>
        public bool ReadonlyMode { get { return !this.editableMode; } }

        /// <summary>
        /// Set the editableMode
        /// </summary>
        /// <param name="editableMode"></param>
        private void SetEditableMode(bool editableMode)
        {
            if (this.editableMode != editableMode)
            {
                this.editableMode = editableMode;
                this.NotifyPropertyChanged("EditableMode");
            }
        }

        #endregion Context toolbar

        #endregion <Implement Interface>



        public test()
        {
            InitializeComponent();
        }
    }
}
